package demo.android.com.mvpdemo.OKHttp;

import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import demo.android.com.mvpdemo.R;

/**
 * Created by Vya on 2018/1/18 0018.
 */

public class TestOkHttpActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        int temp = Color.parseColor("#ff0000");
        Log.e("wangyan","Temp----->"+temp);
      /*  OkHttpClient client = new OkHttpClient();

        RequestBody requestBody  = new RequestBody()
                .type(RequestBody.FORM)
                .addParam("pageNo",1+"")
                .addParam("platform","android")
                .addParam("pageSize",1+"");

        Request request = new Request.Builder().url("https://api.saiwuquan.com/api/appv2/sceneModel").post(requestBody).build();
        Call call = client.newCall(request);
        call.enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                Log.e("wangyan","onFailure");
            }

            @Override
            public void onResponse(Call call, Response resp) {
                Log.e("wangyan","onResponse"+resp.string());
            }
        });*/
    }
}
